<template>
	<view class="simple-toolbar">
		<text class="simple-toolbar__title">{{title}}</text>
		<view class="simple-toolbar__content">
			<slot name="content"></slot>
		</view>
		<view class="simple-toolbar__right">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: "simple-toolbar",
		props: {
			title: {
				type: String,
				default: ''
			}
		},
		mounted() {
			// console.log('slots', this.$slots)
		},
	}
</script>

<style scoped>
	.simple-toolbar {
		position: fixed;
		top: 0;
		right: 0;
		left: 240px;
		z-index: 999;
		height: 85px;
		background: #FFFFFF;
		box-shadow: 0 0.78rpx 15.62rpx rgba(0, 0, 0, 0.1);
		display: flex;
		align-items: center;
		padding: 0 21.87rpx;
		font-size: 10.93rpx;
	}

	.simple-toolbar__title {
		font-weight: 500;
		white-space: nowrap;
	}
	.simple-toolbar__content {
		flex: 1;
	}
</style>
